package model.monde;

import java.util.ArrayList;

public class Bag
{
	private final ArrayList<Item> items;

	public Bag() {
		this.items = new ArrayList<Item>();
	}

	public void addItem(Item i) {
		this.items.add(i);
	}

	public int getItemCount()
	{
		return this.items.size();
	}

	public boolean removeItem(Item i) {
		if (!this.items.contains(i))
			return false;

		this.items.remove(i);
		return true;
	}
	
	public ArrayList<Item> getItems(){
		return items;
	}
}
